// import './assets/main.css'

import { createApp } from 'vue'
// 导入Pinia
import { createPinia } from 'pinia'
// 导入Pinia持久化插件
import persist from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
// 全局样式
import '@/assets/css/main.scss'

const pinia = createPinia() // 创建Pinia根实例
const app = createApp(App)

pinia.use(persist)
app.use(pinia)
// app.use(pinia.use(persist)) // pinia插件的安装配置
// app.use(createPinia())
app.use(router)

app.mount('#app')
